<?php


namespace app\models\log;


use think\Model;

class AdminLogModel extends Model
{
    protected $name = 'admin_log';
    protected $autoWriteTimestamp = true;

    public function setParamsAttr($value)
    {
        if (!is_array($value) && !is_object($value)) {
            return $value;
        }
        return json_encode($value);
    }
}